package com.geekteam.manga.rest;

import com.geekteam.manga.Utils.LogUtils;

public class RestHelper {
	private static RestHelper mInstance;

	private static final String SERVER = "http://192.168.1.100/apis";
	private static final String GET_JOB = SERVER + "/get_job";
	private static final String TAG = LogUtils.makeLogTag(RestHelper.class);
	
	public static RestHelper getInstance() {
		if (mInstance == null) {
			synchronized (RestHelper.class) {
				if (mInstance == null) {
					mInstance = new RestHelper();
				}
			}
		}

		return mInstance;
	}

	private RestHelper() {
	}
	
//	public static Jobs getJob(ArrayList<ParcelableNameValuePair> parcelableNameValuePairs){
//		String response = RestCaller.excute(GET_JOB, parcelableNameValuePairs);
//		
//		Jobs result = null;
//		if(response!=null){
//			LogUtils.LOGI(TAG, response);
//			result = (Jobs) JsonUtils.fromJson(response, Jobs.class);
//		}else{
//			LogUtils.LOGI(TAG, "response null");
//			result = new Jobs();
//			result.code = ErrorCode.NOT_RESPONSE;
//		}
//		
//		return result;
//	}
}